home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950726-19950929 / 000070_news@columbia.edu_Sat Jul 29 21:47:33 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA09071
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 3 Aug 1995 11:10:23 -0400
  3. Received: by apakabar.cc.columbia.edu id AA28719
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 3 Aug 1995 11:10:21 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!usenet.eel.ufl.edu!spool.mu.edu!agate!news.mindlink.net!vanbc.wimsey.com!ddsw1!news.mcs.net!not-for-mail
  6. From: les@MCS.COM (Leslie Mikesell)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Kermit download from CompuServe.. best setup??
  9. Date: 29 Jul 1995 16:47:33 -0500
  10. Organization: /usr/lib/news/organi[sz]ation
  11. Lines: 51
  12. Message-Id: <3vea9l$b7n@Venus.mcs.com>
  13. References: <3uidtu$r5c@hpber004.swiss.hp.com> <kwOFww8Z7GDV084yn@netcom.com> <DCCKKL.K63@omen.com> <3var29$nvm@apakabar.cc.columbia.edu>
  14. Nntp-Posting-Host: venus.mcs.com
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3var29$nvm@apakabar.cc.columbia.edu>,
  18. Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  19. >In other words, binary mode (= "No Presentation Layer")
  20. >works for all files only when:
  21. >
  22. > (a) The two systems have the same text-file format (e.g. stream LF,
  23. >     stream CRLF, stream CR), and then (usually) only when the files
  24. >     are stream, rather than record oriented, and:
  25. >
  26. > (b) Character-set conversion is not required.
  27. >
  28. >Therefore, when conditions (a) and (b) are not met, one must pick text or
  29. >binary mode for each file transfer in order to avoid corruption.  And that
  30. >implies that, for convenience, one must also have a default mode to be
  31. >used in the absence of a specific directive from the user.  The rub, of
  32. >course, is that any given default will not fit every file transfer.
  33.  
  34. But, since kermits exchange some initialization information before
  35. the transfer, it would be quite possible for them to know when
  36. case (a) applies.  All you would have to to is assign a code for
  37. each of the types of conversions that kermit does when going
  38. from local to canonical text (probably 4 common ones...) and send
  39. this as part of the initialization codes.  If the remote and local
  40. codes are identical, skip the text transformations and do everything
  41. in binary mode unless you have been told to do character-set conversion.
  42. This would take care of the most common case these days where you
  43. are transferring among like systems, and the fall-back for kermits
  44. that don't send a code or send an unknown code would be to use the
  45. current behaviour with a warning the BINARY/TEXT should be set explicitly.
  46. How many calls do you get about this problem?  How many people give up
  47. on kermit because their files end up corrupted?  It would also make
  48. sense to give a warning when one end has binary mode set and the
  49. other has text mode.
  50.  
  51. It's really too bad that no one has established a standard for binary
  52. storage of text so it could be labeled by the originating system as
  53. to the character set and line/record ending conventions so files
  54. could be moved around without the transport having to do the conversions
  55. (i.e. by network file services, diskettes, tape, etc.).  MIME comes
  56. close and gets character sets right, but it doesn't really address the 
  57. local storage conventions for text, so you still can't arbitrarily
  58. move files around without twiddling at the transport layer. 
  59.  
  60. >  WHEREAS nobody, not even the most inexperienced user, transfers any type
  61. >  of file except ZIP and GIF and JPEG any more, and...
  62.  
  63. Unfortunately, GIF and JPEG files are more portable than text these
  64. days.
  65.  
  66. Les Mikesell
  67.   les@mcs.com